<template>
	<view class="my-search-container" :style="{'background-color':bgcolor}" @click="searchBoxHandle">
		<view class="my-search-box" :style="{'border-radius':bdredius+'px'}">
       <uni-icons type="search" size="17"></uni-icons>
       <text class="plachholder">搜索</text>
		</view>
	</view>
</template>

<script>
	export default {
		name:"my-search",
    props:{
      // 背景颜色
      bgcolor:{
      type:String,
      default: '#025599'
      },
      // 圆角尺寸
      bdredius:{
      type:Number,
      default:18
      }
    },
		data() {
			return {
				
			};
		},
    methods:{
      searchBoxHandle(){
        this.$emit('click')
      }
    }
	}
</script>

<style lang="scss">
.my-search-container{
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  .my-search-box{
    background-color: #fff;
    height: 36px;
    width: 100%;
    line-height: 36px;
    text-align: center;
    .plachholder{
      font-size: 15px;
      margin-left: 5px;
    }
  }
}
</style>
